/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2018
 */

package com.hzyb.shopContent.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Length;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "shop_content")
public class ShopContent {


	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	@Length(max=50)
	private java.lang.String contentSid;
	@Length(max=50)
	private java.lang.String commoditySid;
	@Length(max=5000)
	private java.lang.String content;
	@Length(max=50)
	private java.lang.String enterUserid;

	private java.util.Date enterDate;
	@Length(max=50)
	private java.lang.String updateUserid;

	private java.util.Date updateDate;
	//columns END


	public ShopContent(){
	}

	public ShopContent(
			java.lang.String contentSid
			){
		this.contentSid = contentSid;
	}



	public void setContentSid(java.lang.String value) {
		this.contentSid = value;
	}

	@Id @GeneratedValue(generator="custom-id")
	@GenericGenerator(name="custom-id", strategy = "increment")
	@Column(name = "content_sid", unique = true, nullable = false, insertable = true, updatable = true, length = 50)
	public java.lang.String getContentSid() {
		return this.contentSid;
	}

	@Column(name = "commodity_sid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getCommoditySid() {
		return this.commoditySid;
	}

	public void setCommoditySid(java.lang.String value) {
		this.commoditySid = value;
	}

	@Column(name = "content", unique = false, nullable = true, insertable = true, updatable = true, length = 5000)
	public java.lang.String getContent() {
		return this.content;
	}

	public void setContent(java.lang.String value) {
		this.content = value;
	}

	@Column(name = "enter_userid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getEnterUserid() {
		return this.enterUserid;
	}

	public void setEnterUserid(java.lang.String value) {
		this.enterUserid = value;
	}



	@Column(name = "enter_date", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public java.util.Date getEnterDate() {
		return this.enterDate;
	}

	public void setEnterDate(java.util.Date value) {
		this.enterDate = value;
	}

	@Column(name = "update_userid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getUpdateUserid() {
		return this.updateUserid;
	}

	public void setUpdateUserid(java.lang.String value) {
		this.updateUserid = value;
	}


	@Column(name = "update_date", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public java.util.Date getUpdateDate() {
		return this.updateDate;
	}

	public void setUpdateDate(java.util.Date value) {
		this.updateDate = value;
	}
}

